package business;


import java.util.Hashtable;

public class AlunoFactory {

	private Hashtable printables = new Hashtable();

   
	public AlunoInterface getAluno(String nome, CalendarDate dataNascimento, String email, int numero) {	 
		
		
		if (printables.containsKey(numero)) {
			return (AlunoInterface) printables.get(numero); 
		} else {			
			Aluno flyweight = new Aluno(nome, dataNascimento, email, numero);		
			
			printables.put(numero, flyweight);
			return flyweight; 
		} 
	}
}
